package com.alex.core.exception;



public abstract class AbstractException extends Exception {
	private static final long serialVersionUID = 1L;

    private  int code = 401;

    private String msg = "网络异常";

    private  String errorMsg = "Unauthorized";

    public AbstractException(int code,String msg, String errorMsg) {
        this.code = code;
        this.msg = msg;
        this.errorMsg = errorMsg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
